package com.leyantech.ecp.agenx.translator.config;

import javax.annotation.Nullable;

/**
 * @author dongxu.ma, {@literal <dongxu.ma@leyantech.com>}
 * @date 2021-10-21.
 */
public enum EnumPddMsgType {

  NORMAL(0, "普通消息"),
  IMAGE(1, "图片"),
  IMAGE_2(2, "图片"),
  EMOTICON(5, "表情"),
  CONFLICT_WARN(8, "纠纷预警，请立即跟进"),
  BUYER_AGREE_REFUND(9, "消费者已同意您发起的退款申请，请及时处理"),
  BUYER_APPLY_MODIFY_ADDRESS(11, "买家申请修改为新地址"),
  VIDEO(14, "视频"),
  TRACES_COMPLAIN(19, "物流投诉"),
  ASSISTANT_TRANSFER_MSG(24, "客服转接消息"),
  MSG_FROM_GOODS_INFO_PAGE(41, "当前用户来自 商品详情页"),
  GOODS_TRACES(42, "物流卡片或消息"),
  APPLY_RECEIPT(48, "申请发票或合并支付商品卡片"),
  PDD_SYSTEM_MARKETING(50, "拼多多官方营销"),
  ASK_SPU_INFO(52, "咨询商品规格"),
  BUYER_APPLY_POST_SALES_SERVICE(64, "消费者申请售后");
  
  

  public final int typeNo;
  public final String remark;

  EnumPddMsgType(int typeNo, String remark) {
    this.typeNo = typeNo;
    this.remark = remark;
  }

  @Nullable
  public static EnumPddMsgType getEnumPddMsgType(int typeNo) {
    for (EnumPddMsgType pddMsgType : EnumPddMsgType.values()) {
      if (pddMsgType.typeNo == typeNo) {
        return pddMsgType;
      }
    }
    return null;
  }
  
}
